package com.sdry.service.impl.zc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.zc.ZcProductInspectionMapper;
import com.sdry.model.zc.ZcProductInspectionEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.model.zc.ZcTrolleyBindingEntity;
import com.sdry.service.zc.ZcProductInspectionService;

/**
 * 
 * @ClassName:    ZcProductInspectionServiceImpl   
 * @Description:  产品报检
 * @Author:       zc   
 * @CreateDate:   2018年11月9日 下午4:05:11   
 * @Version:      v1.0
 */
@Service
public class ZcProductInspectionServiceImpl implements ZcProductInspectionService {
	@Resource
	private ZcProductInspectionMapper ZcProductInspectionMapper;
	/**
	 * 查询绑定列表
	 */
	@Override
	public List<ZcTrolleyBindingEntity> selectTrolleyBindingList(ZcQueryCriteria zcQueryCriteria) {
		return ZcProductInspectionMapper.selectTrolleyBindingList(zcQueryCriteria);
	}
	/**
	 * 查询绑定列表数量
	 */
	@Override
	public int countTrolleyBindingList() {
		return ZcProductInspectionMapper.countTrolleyBindingList();
	}
	/**
	 * 台车绑定
	 */
	@Override
	public int addTrolleyBinding(ZcTrolleyBindingEntity zcTrolleyBindingEntity) {
		return ZcProductInspectionMapper.addTrolleyBinding(zcTrolleyBindingEntity);
	}
	/**
	 * 解除台车绑定
	 */
	@Override
	public int deleteTrolleyBinding(long tId) {
		return ZcProductInspectionMapper.deleteTrolleyBinding(tId);
	}
	/**
	 * 修改台车绑定
	 */
	@Override
	public int editTrolleyBinding(ZcTrolleyBindingEntity zcTrolleyBindingEntity) {
		return ZcProductInspectionMapper.editTrolleyBinding(zcTrolleyBindingEntity);
	}
	/**
	 * 产品报检
	 */
	@Override
	public int productInspection(ZcProductInspectionEntity zcProductInspectionEntity) {
		return ZcProductInspectionMapper.productInspection(zcProductInspectionEntity);
	}
	

}
